﻿namespace SupportSystemDB
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// Parent for All Controllers.
    /// </summary>
    public class ParentController
    {
        /// <summary>
        /// DataAccess Object
        /// </summary>
        private SupportEntities supportDB;

        /// <summary>
        /// Initializes a new instance of the <see cref="ParentController"/> class.
        /// </summary>
        /// <param name="databaseAccess">The database access.</param>
        protected ParentController( SupportEntities databaseAccess )
        {
            this.supportDB = databaseAccess;
        }

        /// <summary>
        /// Gets the Support Database.
        /// </summary>
        /// <value>The Support Database.</value>
        protected SupportEntities SupportDB
        {
            get { return this.supportDB; }
        }
    }
}
